package com.inspectionwork.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.inspectionwork.common.base.BasisEntity;

//@Data
@TableName("role")//角色表
public class Role extends BasisEntity {

    private String id;//主键id
    private String name;//名称
    private Integer type;//角色类型：1 单位角色 2机构角色
    private Integer froms;//来源：1 手机端 2 pc端


    public String getId() {
        return this.getString("id");
    }

    public void setId(String id) {
        this.put("id",id);
    }

    public String getName() {
        return this.getString("name");
    }

    public void setName(String name) {
        this.put("name",name);
    }

    public Integer getType() {
        return this.getInteger("type");
    }

    public void setType(Integer type) {
        this.put("type",type);
    }

    public Integer getFroms() {
        return this.getInteger("froms");
    }

    public void setFroms(Integer froms) {
        this.put("froms",froms);
    }
}
